public class Bus extends Vehicle{

    public Bus(String brand, String plate_number, double dayRent) {
        super(brand, plate_number, dayRent);
    }

    public Bus() {
    }

    private static final String specialOffers="租车超过3天九折，超过7天八折，超过30天七折，超过150天五折。";

    @Override
    public double rentCalculation(int days) {
        if (days>150){
            return  getDayRent()*days*0.50;
        }else if (days>30){
            return  getDayRent()*days*0.70;
        }else if (days>7){
            return  getDayRent()*days*0.80;
        }else if (days>3){
            return  getDayRent()*days*0.90;
        }else {
            return  getDayRent()*days;
        }

    }

    @Override
    public String toString() {
        return getBrand()+"，车牌是"+getPlate_number()+"，租金每天"+getDayRent()+"元，"+Bus.specialOffers;

    }
}
